package com.unlcn.ils.erpInterfaces.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.unlcn.ils.erpInterfaces.dao.model.Soshipline;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author liangpeng
 * @since 2018-06-13
 */
public interface SoshiplineMapper extends BaseMapper<Soshipline> {

    /**
     * 根据车牌号做运抵
     * @param soshipline
     * @param license
     */
    void shipToByLicense(@Param("soshipline") Soshipline soshipline, @Param("license") String license);

    /**
     * 查找发运指令下最新的抵达时间
     * @param shipId
     * @return
     */
    Date getNewestComedate(@Param("shipId") Long shipId);
}